<?php
class Lop extends AppModel{
	public $name = 'Lop';
	public $primaryKey = 'MaLop';
	//each Lop has many hocsinh
	public $hasMany = array(
		'Hocsinh'=>array(
				'className'=>'Hocsinh',
				'foreignKey'=>'MaLop',
				'dependent'=>'true'));
	public $belongsTo = array(
		'Khoi'=>array(
				'className'=>'Khoi',
				'foreignKey'=>'MaKhoi'));
}
?>